package com.ay277.htqoa.base.dao;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Jun on 2016/12/7.
 */
public interface Dao<E extends Serializable,PK extends Serializable> {

    void save(E entity);
    void update(E entity);
    void delete(E entity);

    E get(PK id);

    List<E> list();



}
